package cn.picclife.mwx.manager.sys.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.picclife.mwx.common.core.dao.MyBatisRepositoryAnnotation;
import cn.picclife.mwx.manager.sys.model.bo.PageCount;
import cn.picclife.mwx.manager.sys.model.po.DataCollect;
import cn.picclife.mwx.manager.sys.model.po.DataCollectUser;

@MyBatisRepositoryAnnotation
public interface DataCollectMapper {
	
	public int saveData(DataCollect bo);
	
	public DataCollect queryDataById(@Param("id") String id);
	
	public int updateDataById(DataCollect bo);
	
	public int updateDataByQueryId(DataCollect bo);
	
	public List<DataCollect> queryData(DataCollect bo);
	
	public List<DataCollectUser> queryDataCollectUser(String datacollectId);
	
	public int saveDataCollectUser(DataCollectUser user);
	
	public int queryDataAllCount(Map<String, Object> paramMap);
	
	public int updateRandomList(@Param("dataCollectIdList") List<String> dataCollectIdList);
	
	public List<DataCollect> queryDataList(Map<String, Object> paramMap);
	
	public int updateDataAllCount(Map<String, Object> paramMap);
	
	public int updateDataByArchiveTime(@Param("dataflag") String dataflag, @Param("time") Date time);
	
	public int queryCountByBunoAppName(Map<String, Object> paramMap);
	
	public List<DataCollect> queryDataPageByBunoAppName(PageCount pageCount);

	public List<DataCollect> queryApplyRecord(@Param("id")String id);
	
	public List<DataCollect> queryDataOfTask();
	
	public DataCollect queryDataByQueryId(@Param("queryId") String queryId);

	public List<DataCollect> queryTaskList( @Param("time") Date time);

    public void deleteZipFail(@Param("uuidList")List<String> uuidList);

    public List<DataCollect> queryDataByIdList(@Param("idList") List<String> idList);
}
